package com.example.Wisdompark.service;

import com.example.Wisdompark.pojo.Current_Cargo;
import com.example.Wisdompark.pojo.Entry_Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface EntryOrderService {
    // 查询所有入库订单
    List<Entry_Order> queryAllOrder();

    // 插入一个订单
    int insertAOrder(Entry_Order entryorder);

    // 删除一个订单
    int delAOrder(String order_num);

    // 更新一个订单
    int updateAOrder(Entry_Order entryorder);

    // 根据订单编号查询订单信息
    Entry_Order queryByOrderNum(String order_num);

    int updateOrderState(String order_num,
                         int state);

    // 根据state状态查询货物
    List<Entry_Order> queryOrderByState(Integer state);

}
